import './globals.css'
import { Inter } from 'next/font/google'
import { Toaster } from 'react-hot-toast'
import { CartProvider } from './components/CartContext'

const inter = Inter({ subsets: ['latin'] })

export const metadata = {
  title: '餐厅点单系统',
  description: '现代化的餐厅点单系统',
}

export default function RootLayout({
  children,
}: {
  children: React.ReactNode
}) {
  return (
    <html lang="zh">
      <body className={inter.className}>
        <CartProvider>
          <Toaster position="top-center" />
          <main className="min-h-screen bg-background">
            {children}
          </main>
        </CartProvider>
      </body>
    </html>
  )
} 